/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.qhq.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 学部管理Entity
 * @author 秦华权
 * @version 2017-11-28
 */
public class DeptParentlist extends DataEntity<DeptParentlist> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 学院名称
	private SchoolDept schoolDept;		// 学部名称 父类
	private String schoo;		// 学校名称
	
	public DeptParentlist() {
		super();
	}

	public DeptParentlist(String id){
		super(id);
	}

	public DeptParentlist(SchoolDept schoolDept){
		this.schoolDept = schoolDept;
	}

	@Length(min=0, max=100, message="学院名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="学部名称长度必须介于 0 和 64 之间")
	public SchoolDept getSchoolDept() {
		return schoolDept;
	}

	public void setSchoolDept(SchoolDept schoolDept) {
		this.schoolDept = schoolDept;
	}
	
	@Length(min=0, max=64, message="学校名称长度必须介于 0 和 64 之间")
	public String getSchoo() {
		return schoo;
	}

	public void setSchoo(String schoo) {
		this.schoo = schoo;
	}
	
}